package sample12;

public class Student implements Propeties {
	// フィールド
	int age;
	String name;
	String school;

	// コンストラクタ
	public Student(int age, String name, String school) {
		this.age = age;
		this.name = name;
		this.school = school;
	}

	//メソッド
	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public void toPropeties() {
		System.out.println("class=" + this.getClass().getSimpleName());
		System.out.println("age=" + age);
		System.out.println("name=" + name);
		System.out.println("school=" + school);

	}

}
